package com.hlkj.baojin.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.entity.dto
 * @description:
 * @date 2019/1/9 13:14
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@ApiModel
@Getter
@Setter
public class CompanyAreaDto {

    @Null(message = "主键id应为空")
    @ApiModelProperty(value = "主键id(更新及查看时使用)")
    private String id;

    /**
     * 厂区名称
     */
    @NotBlank(message = "厂区名称不能为空")
    @ApiModelProperty(value = "厂区名称")
    private String name;

    /**
     * 所属企业
     */
    @NotBlank(message = "所属企业不能为空")
    @ApiModelProperty(value = "所属企业")
    private String belongCompany;


    @ApiModelProperty(value = "所属企业名称")
    private String belongCompanyName;

    /**
     * 0.车间 1.仓库 2.储罐
     */
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型 0.车间 1.仓库 2.储罐 3.其它")
    private Integer type;

    /**
     * 状态
     */
/*
    @ApiModelProperty(value = "状态")
    private Integer status;
*/

    /**
     * 监控
     */
    @ApiModelProperty(value = "监控")
    private List<MonitorDto> monitorDtoList;

}
